home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 118 / cd-rom 118.iso / aplic / open / openofficeorg2.cab / source.xml.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2004-11-27  |  3.2 KB  |  93 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. #/*************************************************************************
  4. #
  5. #   $RCSfile: source.xml.xsl,v $
  6. #
  7. #   $Revision: 1.2 $
  8. #
  9. #   last change: $Author: kz $ $Date: 2004/05/19 15:03:46 $
  10. #
  11. #   The Contents of this file are made available subject to the terms of
  12. #   either of the following licenses
  13. #
  14. #          - GNU Lesser General Public License Version 2.1
  15. #          - Sun Industry Standards Source License Version 1.1
  16. #
  17. #   Sun Microsystems Inc., October, 2000
  18. #
  19. #   GNU Lesser General Public License Version 2.1
  20. #   =============================================
  21. #   Copyright 2000 by Sun Microsystems, Inc.
  22. #   901 San Antonio Road, Palo Alto, CA 94303, USA
  23. #
  24. #   This library is free software; you can redistribute it and/or
  25. #   modify it under the terms of the GNU Lesser General Public
  26. #   License version 2.1, as published by the Free Software Foundation.
  27. #
  28. #   This library is distributed in the hope that it will be useful,
  29. #   but WITHOUT ANY WARRANTY; without even the implied warranty of
  30. #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  31. #   Lesser General Public License for more details.
  32. #
  33. #   You should have received a copy of the GNU Lesser General Public
  34. #   License along with this library; if not, write to the Free Software
  35. #   Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  36. #   MA  02111-1307  USA
  37. #
  38. #
  39. #   Sun Industry Standards Source License Version 1.1
  40. #   =================================================
  41. #   The contents of this file are subject to the Sun Industry Standards
  42. #   Source License Version 1.1 (the "License"); You may not use this file
  43. #   except in compliance with the License. You may obtain a copy of the
  44. #   License at http://www.openoffice.org/license.html.
  45. #
  46. #   Software provided under this License is provided on an "AS IS" basis,
  47. #   WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
  48. #   WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
  49. #   MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
  50. #   See the License for the specific provisions governing your rights and
  51. #   obligations concerning the Software.
  52. #
  53. #   The Initial Developer of the Original Code is: Sun Microsystems, Inc.
  54. #
  55. #   Copyright: 2000 by Sun Microsystems, Inc.
  56. #
  57. #   All Rights Reserved.
  58. #
  59. #   Contributor(s): _______________________________________
  60. #
  61. #
  62. #
  63. #*************************************************************************
  64. -->
  65. <!-- =================================
  66.   
  67.   This templates creates a source.xml file
  68.   which is identicall to the source xml tree
  69.   used for the transformation.
  70.   This is may be usefull for deveopement/debuging
  71.   of layouts.
  72.   
  73.   ==================================== -->
  74.  
  75. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  76.   xmlns:redirect="http://xml.apache.org/xalan/redirect" 
  77.   extension-element-prefixes="redirect">
  78.  
  79.    <xsl:output method="xml"/>
  80.     
  81.  
  82.    <xsl:template  match="/">
  83.              <xsl:apply-templates mode="copy"/>
  84.    </xsl:template>
  85.      
  86.    <xsl:template match="@*|node()" mode="copy">
  87.       <xsl:copy>
  88.          <xsl:apply-templates select="@*|node()" mode="copy"/>
  89.        </xsl:copy>
  90.    </xsl:template>    
  91.     
  92. </xsl:stylesheet>
  93.